package com.ryan.notify.model;

import java.util.ArrayList;

public class NotifyModel {

    private ArrayList<NotificationRecord> ongoing;
    private ArrayList<NotificationRecord> normal;
    public NotifyModel(ArrayList<NotificationRecord> ongoing, ArrayList<NotificationRecord> normal) {
        super();
        if(ongoing==null)
            ongoing = new ArrayList<NotificationRecord>();
        if(normal==null)
            normal = new ArrayList<NotificationRecord>();
        this.ongoing = ongoing;
        this.normal = normal;
    }
    /**
     * @return the ongoing
     */
    public ArrayList<NotificationRecord> getOngoing() {
        return ongoing;
    }
    /**
     * @return the normal
     */
    public ArrayList<NotificationRecord> getNormal() {
        return normal;
    }
    
    
    public int getSize(){
        return ongoing.size()+normal.size();
    }
    
    public NotificationRecord get(int pos){
        if(pos<ongoing.size()){
            return ongoing.get(pos);
        }
        
        return normal.get(pos-ongoing.size());
    }
    
    
    
    
}
